//
//  MainRootViewController.m
//  Courses
//
//  Created by YiXuePxh on 15/4/25.
//  Copyright (c) 2015年 boyibang. All rights reserved.
//

#import "MainRootViewController.h"
#import "WTFRootTabBarController.h"
#import "SignUpViewController.h"

#import "WTFRootTabBarController.h"

@interface MainRootViewController ()
@property (weak, nonatomic) IBOutlet UIButton *freeRegistration;
@property (weak, nonatomic) IBOutlet UIButton *useRight;

@end

@implementation MainRootViewController

-(instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        //
    }
    return self;
}
-(void)viewWillAppear:(BOOL)animated{
    [super viewWillAppear:animated];
    [self.navigationController setNavigationBarHidden:YES];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view from its nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
- (IBAction)registration:(id)sender {
    [self.navigationController setNavigationBarHidden:NO];
    [self.navigationController pushViewController:[SignUpViewController sharedInstance] animated:NO];
}
- (IBAction)useRight:(id)sender {
    [self presentViewController:[WTFRootTabBarController sharedInstance] animated:NO completion:^{
    }];
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/


@end
